const maps = [
    {
        mapId: 1, // 地图ID
        mapName: '魔法城堡', // 地图名称
        mapAudio: audio.Map1, // 地图音乐
        mapInitialPos:{ 
            x:config.canvasWidth / 2 - config.playerWidth / config.playerFrames / 2,
            y:config.canvasHeight / 2 - config.playerHeight / 2 + 200
        },// 玩家在地图的初始位置
        mapBackground: config.publicPath + '/maps/1/map_background.png', // 背景
        mapForeground: config.publicPath + '/maps/1/map_foreground.png', // 前景
        mapTransferList:[
            { 
                nextMapId: 4,
                Id: 1262,
                pos:[130, 200, 410, 435],
                name:'摩尔拉雅山脚'
            },
            { 
                nextMapId: 2,
                Id: 1263,
                pos:[30, 70, 620, 680],
                name:'爱心广场'
            },
            { 
                nextMapId: 3,
                Id: 1264,
                pos:[1400, 1430, 630, 690],
                name:'淘淘乐街'
            },
            { 
                nextMapId: 32,
                Id: 1265,
                pos:[800, 840, 200, 250],
                name:'城堡书房'
            },
            { 
                nextMapId: 15,
                Id: 1266,
                pos:[630, 740, 410, 470],
                name:'城堡大厅'
            },
            { 
                nextMapId: 17,
                Id: 1267,
                pos:[1030, 1085, 450, 510],
                name:'摩尔餐厅'
            }
        ], // 地图跳转列表
        frames:[], // 帧动画列表
        isLoadFrame:false, // 判断是否已加载帧动画
        events:[
            // {
            //     range:[],eventType:[1,2], eventFunc: { id:1, msg: 'xxxxx'}
            // }
        ] //地图事件，包括元素点击，动效，以及触发人物事件
    },
    {
        mapId: 2,
        mapName: '爱心广场',
        mapAudio: audio.Map2,
        mapInitialPos:{ 
            x:config.canvasWidth / 2 - config.playerWidth / config.playerFrames / 2,
            y:config.canvasHeight / 2 - config.playerHeight / 2 + 200
        },
        mapBackground: config.publicPath + '/maps/2/map_background.png',
        mapForeground: config.publicPath + '/maps/2/map_foreground.png',
        mapTransferList:[
            { 
                nextMapId: 1, // 摩尔城堡
                Id: 1262,
                pos:[1350, 1390, 450, 470],
                name:'摩尔城堡'
            },
            { 
                nextMapId: 18, // 爱心教堂
                Id: 1263,
                pos:[965, 1030, 370, 450],
                name:'爱心教堂'
            },
            { 
                nextMapId: 9, // 阳光牧场
                Id: 1264,
                pos:[10, 50, 430, 490],
                name:'阳光牧场'
            },
        ],
        frames:[
            { x:160,y:200,w:181,h:253,id:1,frame:74, imgPaths:[] },
            { x:484,y:565,w:167,h:210,id:2,frame:36, imgPaths:[] }
        ],
        isLoadFrame:false,
        events:[]
    },
    {
        mapId: 3,
        mapName: '淘淘乐街',
        mapAudio: audio.Map3,
        mapInitialPos:{ 
            x:137,
            y:630
        },
        mapBackground: config.publicPath + '/maps/3/map_background.png',
        mapForeground: config.publicPath + '/maps/3/map_foreground.png',
        mapTransferList:[
            { 
                nextMapId: 1, // 摩尔城堡
                Id: 1262,
                pos:[40, 60, 610, 730],
                name:'摩尔城堡'
            },
            { 
                nextMapId: 28, // 拉姆学院
                Id: 1263,
                pos:[1370, 1390, 470, 600],
                name:'拉姆学院'
            },
            { 
                nextMapId: 19, // 道具店
                Id: 1264,
                pos:[323, 360, 400, 435],
                name:'道具店'
            },
            { 
                nextMapId: 20, // 服装店
                Id: 1265,
                pos:[688, 766, 320, 355],
                name:'服装店'
            },
            { 
                nextMapId: 21, // 宠物店
                Id: 1266,
                pos:[1200, 1260, 358, 410],
                name:'宠物店'
            }
        ],
        frames:[
            { x:305,y:148,w:68,h:74,id:1,frame:18, imgPaths:[] },
            { x:396,y:362,w:54,h:62,id:2,frame:14, imgPaths:[] }
        ],
        isLoadFrame:false,
        events:[]
    },
    {
        mapId: 15,
        mapName: '城堡大厅',
        mapAudio: audio.Map15,
        mapInitialPos:{ 
            x:248,
            y:520
        },
        mapBackground: config.publicPath + '/maps/15/map_background.png',
        mapForeground: config.publicPath + '/maps/15/map_foreground.png',
        mapTransferList:[
            { 
                nextMapId: 1, // 摩尔城堡
                Id: 1262,
                pos:[77, 165, 445, 530],
                name:'摩尔城堡'
            },
            { 
                nextMapId: 16, // 城堡二楼
                Id: 1263,
                pos:[1190, 1290, 340, 380],
                name:'城堡二楼'
            }
        ],
        frames:[],
        isLoadFrame:false,
        events:[]
    },
    {
        mapId: 16,
        mapName: '城堡二楼',
        mapAudio: audio.Map16,
        mapInitialPos:{ 
            x:1118,
            y:791
        },
        mapBackground: config.publicPath + '/maps/16/map_background.png',
        mapForeground: config.publicPath + '/maps/16/map_foreground.png',
        mapTransferList:[
            { 
                nextMapId: 15, // 城堡大厅
                Id: 1263,
                pos:[1170, 1220, 777, 830],
                name:'城堡大厅'
            },
            { 
                nextMapId: 32, // 城堡书房
                Id: 1262,
                pos:[692, 810, 175, 227],
                name:'城堡书房'
            },
            { 
                nextMapId: 33, // 城堡露台
                Id: 1264,
                pos:[40, 95, 431, 562],
                name:'城堡露台'
            },
            // { 
            //     nextMapId: 33, // 长廊
            //     Id: 1265,
            //     pos:[40, 95, 431, 562],
            //     name:'城堡露台'
            // }
        ],
        frames:[],
        isLoadFrame:false,
        events:[]
    }
]